package com.sinosoft.bee.services.consumer.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author:TobbyQuinn
 * @date:2018/4/25
 * @project:bee
 **/
@Configuration
public class RandomRuleOfRibbon {
    @Bean
    public IRule iRule(){
        return new RandomRule();
    }
}
